package top.go2do.websiteNavigation.exception;

import top.go2do.common.exception.BusinessException;

import java.util.Map;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/6/18 11:21
 */
public class WebsiteNavigationException extends BusinessException {
    private Map data;
    public WebsiteNavigationException(WebsiteNavigationErrorCode errorCode) {
        super(errorCode.getCode(), errorCode.getMsgKey());
    }

    public WebsiteNavigationException(WebsiteNavigationErrorCode errorCode, Object[] args) {
        super(errorCode.getCode(), errorCode.getMsgKey(), args);
    }

    public WebsiteNavigationException(WebsiteNavigationErrorCode errorCode, Object[] args, Throwable cause) {
        super(errorCode.getCode(), errorCode.getMsgKey(), args, cause);
    }

    public void setData(Map data) {
        this.data = data;
    }

    public Map getData() {
        return data;
    }
}
